﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using UncleBobWebService.Models;
using UncleBobWebService.ServiceRequester;

namespace UncleBobApplicantWebService.Controllers
{
    public class JobListQuestions : Controller
    {
        //
        // GET: /JobListQuestions/
        private JobModel job = new JobModel();

        public ActionResult JobListQuestionsView()
        {
            job = Session[SessionKeys.JOB] as JobModel;
            return View();
        }

        public ActionResult FormAction(FormCollection collection)
        {
            if (collection.Get("createquestion") != null)
            {
                return RedirectToAction("JobQuestionsEnter", "JobQuestions");
            }

            if (collection.Get("editquestion") != null)
            {
                return RedirectToAction("JobListQuestionsView", "JobListQuestions");
            }

            return RedirectToAction("StaffingExpertMainMenu", "StaffingExpertMenu");
        }

    }
}
